﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace housingsafety.server.Models
{
    public partial class ZmBuildingLedgerDto : Repository.IEntity
    {
        [Key]
        [Column("id")]
        [StringLength(255)]
        public string Id { get; set; }
        [Column("parent_id")]
        [StringLength(255)]
        public string ParentId { get; set; }
        [Column("region_name")]
        [StringLength(255)]
        public string RegionName { get; set; }

       
        [Column("region_code")]
        [StringLength(255)]
        public string RegionCode { get; set; }
        [NotMapped]
        public DateTime CreateOn { get; set; }
        [NotMapped]
        public DateTime? ModifiedOn { get; set; }
        [NotMapped]
        public short? IsDelete { get; set; }
        [NotMapped]
        public DateTime? DeleteOn { get; set; }
    }

    public partial class ZmBuildingLedgerAllDto : Repository.IEntity
    {
        [Key]
        [Column("id")]
        [StringLength(255)]
        public string Id { get; set; }

        [Column("village")]
        public string Village { get; set; }

        [Column("villagedm")]
        public string Villagedm { get; set; }

        [Column("town")]
        public string Town { get; set; }

        [Column("towndm")]
        public string Towndm { get; set; }

        [Column("xzq")]
        public string Xzq { get; set; }

        [Column("xzqdm")]
        public string Xzqdm { get; set; }


        [NotMapped]
        public DateTime CreateOn { get; set; }
        [NotMapped]
        public DateTime? ModifiedOn { get; set; }
        [NotMapped]
        public short? IsDelete { get; set; }
        [NotMapped]
        public DateTime? DeleteOn { get; set; }
    }
}
